using FSM.Model; 
using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace FSM.IBll 
{ 
    public interface ISysCodeBll 
    { 
        #region 查询 
        /// <summary> 
        /// 根据键值查询单个信息 
        /// </summary> 
        /// <param name="pkid">键值</param> 
        /// <returns></returns> 
        sys_code Get(string pkid); 
 
        /// <summary> 
        /// 分页查询批量信息 
        /// </summary> 
        /// <param name="code_name">单据名称</param> 
        /// <param name="page">页码</param> 
        /// <param name="page_size">每页显示的条数</param> 
        /// <returns></returns> 
        Tuple<List<sys_code>, int> ListPagin(string code_name, int page, int page_size); 
 
        /// <summary> 
        /// 查询批量信息 
        /// </summary> 
        /// <param name="code_name">单据名称</param> 
        /// <returns></returns> 
        List<sys_code> List(string code_name);

        /// <summary>
        /// 获得最新的流水号
        /// </summary>
        /// <param name="code_no">编号ID</param>
        /// <returns></returns>
        string GetNewCode(string pkid);
        #endregion

        #region 提交 
        /// <summary> 
        /// 添加当前列表数据 
        /// </summary> 
        /// <param name="model">实体</param> 
        /// <returns></returns> 
        bool Insert(sys_code model); 
 
        /// <summary> 
        /// 更新当前列表数据 
        /// </summary> 
        /// <param name="model">实体</param> 
        /// <returns></returns> 
        bool Update(sys_code model); 
 
        /// <summary> 
        ///  删除当前列表数据 
        /// </summary> 
        /// <param name="pkid_arr">键值</param> 
        /// <returns></returns> 
        bool Delete(params string[] pkid_arr); 
        #endregion 
    } 
} 
